Dynamic Slicing: a generic analysis based on a natural semantics format

نویسندگان

  • Valérie Gouranton
  • Daniel Le Métayer
چکیده

Slicing analyses have been proposed for diierent programming languages. Rather than deening a new analysis from scratch for each programming language, we would like to specify such an analysis once for all, in a language-independent way, and then specialise it for diierent programming languages. In order to achieve this goal, we propose a notion of natural semantics format and a dynamic slicing analysis format. The natural semantics format formalises a class of natural semantics and the analysis format is a generic, language-independent, slicing analysis. The correctness of the generic analysis is established as a relation between the derivation trees of the original program and the slice. This generic analysis is then instantiated to several programming languages conforming the semantics format (an imperative language, a logic programming language and a functional language), yielding a dynamic slicing analyser for each of these languages. L''lagage dynamique : une analyse ggnnrique basse sur un format de ssmantique naturelle RRsumm : Il existe un certain nombre d'analyses d''lagage pour diiirents langages de programmation. Au lieu de dddnir une nouvelle analyse pour chacun des langages, nous aimerions spciier l'analyse d''lagage inddpendamment du langage considdrr, puis l'instancier plusieurs langages. Pour atteindre cet objectif, nous proposons un format de ssmantique naturelle qui formalise une classe de ssmantiques naturelles et nous dddnissons un format d'analyse dynamique d''lagage qui est ggnnrique au sens oo il est inddpendant du langage. Nous tablissons ensuite la correction de l'analyse ggnnrique d''lagage sous forme de relation entre les arbres de ddrivation du programme initial et du slice (le programme transformm). L'analyse ggnnrique d''lagage est alors instanciie plusieurs langages de programmation (un langage impratif, un langage de programmation logique et un langage fonctionnel) en conformitt avec le format de ssmantique. Nous obtenons par la suite un analyseur dynamique pour chacun de ces langages. Dynamic slicing: a generic analysis based on a natural semantics format 3 1 Introduction

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reverse Engineering of Network Software Binary Codes for Identification of Syntax and Semantics of Protocol Messages

Reverse engineering of network applications especially from the security point of view is of high importance and interest. Many network applications use proprietary protocols which specifications are not publicly available. Reverse engineering of such applications could provide us with vital information to understand their embedded unknown protocols. This could facilitate many tasks including d...

متن کامل

Dynamic Slicing Research of UML Statechart Specifications

This paper extends the well-known technique of dynamic slicing to Statechart specifications of reactive systems. Statechart language extends state machines along hierarchy, concurrency and communication – resulting in a compact visual notation that allows engineers to structure and modularize system descriptions. Dynamic slicing is well known in the domain of sequential transformational program...

متن کامل

A Generic Program Slicing Technique Based on Language Definitions

A formal executable semantics of a programming language has the necessary information to develop program debugging and reasoning techniques. In this paper we choose such a particular technique called program slicing and we introduce a generic algorithm which extracts a set of side-effects inducing constructs, directly from the formal executable semantics of a programming language. These constru...

متن کامل

Property Based Dynamic Slicing of Object Oriented Programs

Received Jun 12 th , 2015 Revised Aug 20 th , 2015 Accepted Aug 26 th , 2015 Slicing is used for program analysis. It the process of extracting the statements of a program that are relevant to a given computation. Static slicing generates slices for all possible execution of a program helping in program understanding, verification, and maintenance and testing. Dynamic slices are smaller in size...

متن کامل

Towards a Formal Semantics-Based Technique for Interprocedural Slicing

Interprocedural slicing is a technique applied on programs with procedures which relies on how the information is passed at procedure call/return sites. Such a technique computes program slices (i.e. program fragments restricted w.r.t. a given criterion). The existing approaches to interprocedural slicing exploit the particularities of the underlying language semantics in order to compute progr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Log. Comput.

دوره 9  شماره 

صفحات  -

تاریخ انتشار 1999